package com.neuedu.ChinaCityDataApi.controller;

import com.neuedu.ChinaCityDataApi.pojo.Houseprice_Tendency;
import com.neuedu.ChinaCityDataApi.service.Houseprice_TendencyService;
import com.neuedu.ChinaCityDataApi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Houseprice_TendencyController {
    @Autowired
    private Houseprice_TendencyService houseprice_tendencyService;
    @GetMapping("/queryAllhouseprice_Tendency")
    public ResponseResult<List<Houseprice_Tendency>> queryAllhouseprice_Tendency(){
        List<Houseprice_Tendency> houseprice_tendencies = houseprice_tendencyService.queryAllhouseprice_Tendency();
        return new ResponseResult<>("200","查询成功",houseprice_tendencies);
    }
}
